package opera;

import book.Book;
import book.Booklist;

public class ShowOperation implements IOPeration{
    @Override
    public void work(Booklist booklist) {
        System.out.println("打印所有图书");
        int currentSize = booklist.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
//            System.out.println(booklist[i]);
            Book book = booklist.getBook(i);
            System.out.println(book);
        }
    }
}
